<template>
  <div class="index">
    <!-- <img alt="Vue logo" src="../assets/logo.png"> -->
    <div class="loginbox1">
      <div class="loginbox2">
        🎂happy birthday
        <div>小哥哥来啦呀</div>
        <div>欢迎小哥哥~</div>
        <div @click="comeOn">come on</div>
      </div>
    </div>
    <!-- <audio id="vd" autoplay loop>
      <source src="../assets/audio/生日钢琴曲.mp3" type="audio/mp3">
    </audio> -->
  </div>
</template>

<script>
export default {
  methods: {
    comeOn () {
      this.$router.push('/home')
    }
  }
}
</script>

<style scoped>
.index {
  position: relative;
  width: 100%;
  height: 100%;
  background: -webkit-linear-gradient(left top, rgb(255, 51, 0), rgb(0, 183, 255));
}
.index::before {
  width: 100%;
  height: 100%;
  background: url('../image/jpg/bk.jpg') no-repeat;
  background-size: 100% 100%;
  opacity: .3;
}
.loginbox1 {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 330px;
  border-top: 10px solid rgba(255, 51, 0, 0.918);
  border-bottom: 10px solid rgba(0, 183, 255, 0.911);
  border-radius: 20px;
  background: -webkit-linear-gradient(left top, rgb(255, 51, 0), rgb(0, 183, 255));
  box-shadow: rgba(0, 0, 0, 0.3) 10px 10px 10px;
  animation: opacity 10s 1 forwards;
}
.loginbox2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 410px;
  height: 260px;
  text-align: center;
  border: 50px solid transparent;
  border-top: 20px solid transparent;
  color: rgb(255, 51, 0);
  font-size: 30px;
}
.loginbox2 div {
  left: 0;
  width: 100%;
  height: 30px;
  border-radius: 2px;
  font-size: 25px;
  color: rgba(113, 199, 199, 0.705);
}
.loginbox2 div:nth-child(-n + 2)::before {
  left: 30px;
  width: 25px;
  height: 25px;
  background: url(../image/png/boy.png) no-repeat;
  background-size: 100% 100%;
}
.loginbox2 div:nth-child(-n + 2):after {
  right: 30px;
  width: 25px;
  height: 25px;
  background: url(../image/png/girl.png) no-repeat;
  background-size: 100% 100%;
}
.loginbox2 div:nth-child(1) {
  bottom: 70px;
}
.loginbox2 div:nth-child(2) {
  bottom: 40px;
}
.loginbox2 div:nth-child(3) {
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
  width: 80%;
  height: 35px;
  border-radius: 3px;
  color: aliceblue;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 2px;
  background: -webkit-linear-gradient(left top, rgb(255, 51, 0), rgb(0, 183, 255));
}
.loginbox2 div:nth-child(3):hover {
  background: -webkit-linear-gradient(left top, rgb(255, 25, 0), rgb(0, 120, 255));
}
.loginbox2 div:nth-child(3):active {
  background: -webkit-linear-gradient(left top, rgb(255, 0, 0), rgb(0, 0, 255));
}
.label {
  top: 10px;
  width: 100%;
  height: 100%;
  background: tomato;
}
@keyframes opacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
</style>
